package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author liubo
 * @since 2020-05-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@Component
@TableName("sys_dictionary_area")
public class DictionaryArea extends Model<DictionaryArea> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "area_id", type = IdType.UUID)
    private Integer areaId;

    private String areaName;

    private Integer parentId;

    private Integer areaLevel;

    private Integer status;

    @Override
    protected Serializable pkVal() {
        return this.areaId;
    }

}